﻿using BCEntity.OA.WorkflowTemplate.WorkflowTemplateBusiness;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.WorkflowTemplate.WorkflowTemplateBusiness
{
    /// <summary>
    /// 工作流模板业务
    /// </summary>
    public interface IWorkflowTemplateBusinessData
    {
        #region 获取我的中可发起的工作流模板列表
        /// <summary>
        /// 获取我的中可发起的工作流模板列表
        /// </summary>
        /// <param name="companyId">公司Id</param>
        /// <param name="departmentId">部门Id</param>
        /// <param name="positionId">岗位Id</param>
        /// <param name="adminId">员工Id</param>
        /// <param name="categoryCode">工作流分类Code</param>
        /// <returns></returns>
        Task<IEnumerable<WorkflowTemplateBusinessEntity>> GetAllowInitiateList(int companyId, int departmentId, int positionId, long adminId, string categoryCode);
        #endregion
    }
}
